<!--
 * @Author: 李明明
 * @Date: 2020-09-28 16:59:20
 * @LastEditTime: 2022-04-29 16:22:50
 * @LastEditors: 李明明
 * @Description: 易考通
 * @FilePath: /官网pc端/web/html/fragment/home-inc/ykt-course.htm
 * @代码版权方：'政府采购信息网'
-->
<link rel="stylesheet" href="/web/public/css/cover-icon.css">
<body>
  <div id="ykt_course1" class="course" data-num="6">
    <div class="title">
      <h2 class="title_txt"><a href="###">正福易考通</a></h2>
      <a target="_blank" class="more" href="https://ykt.caigou2003.com/#/">更多></a>
    </div>
    <ul class="ykt_list"></ul>
  </div>
</body>
<script>
  function listCourse() {
    var data = {
      pageNum: 1,
      pageSize: $('#ykt_course1').data('num'),
      isOnline: '',
      source: 4,
      yxbName: ''
    }
    $.ajax({
      url: 'https://ykt.caigou2003.com/ykt_java//home/listCourse',
      data: data,
      type: 'get',
      success: function (res) {
        var resData = res.resData.list;
        var html = '';
        resData.forEach(function (item, i) {
          html += '<li>' +
            '<a class="link_img cover" target="_blank" href="https://ykt.caigou2003.com/#/sign_detail?courseId='+ item.courseId +'&tabId=0">' +
                  '<img src="'+ item.imgUrl +'" alt="">' +
                  '<img class="article-icon" src="/web/img/special.png" alt="文本类">' +
                  '<img class="play-icon" src="/web/img/play-icon.png" alt="音视频类">' +
                  '</a>' +
            '<h3><a target="_blank" href="https://ykt.caigou2003.com/#/sign_detail?courseId='+ item.courseId +'&tabId=0">'+ item.courseName +'</a></h3>' +
            '</li>'
        });
        $('.ykt_list').html(html);
      }
    })
  }
  listCourse();

</script>